package com.example.demo.service;

import com.example.demo.entity.Follow;
import com.example.demo.entity.Question;
import com.example.demo.exception.ServiceException;
import com.example.demo.param.vo.FollowUserVO;

import java.util.List;
import java.util.function.ToIntBiFunction;


public interface IFollowService {
    /**
     * 我的关注
     * @param uid
     * @param page
     * @param pageSize
     * @return
     * @throws ServiceException
     */
    FollowUserVO getMyFollow(String uid, Integer page, Integer pageSize)throws ServiceException;

    /**
     * 我的粉丝
     * @param uid
     * @param page
     * @param pageSize
     * @return
     * @throws ServiceException
     */
    FollowUserVO getMyFans(String uid, Integer page, Integer pageSize)throws ServiceException;

    /**
     * 新增关注
     * @param beUserId
     * @return
     */
    Boolean insert(String userId , String beUserId) throws ServiceException;

    /**
     * 取消关注
     * @param id
     * @return
     */
    Boolean delete(String id) throws ServiceException;

    /**
     * 测试
     * @param id
     * @return
     * @throws ServiceException
     */
    Follow getById(String id)throws ServiceException;
}
